package com.zhangchao.day_book.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AnnexExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AnnexExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAnnexNoIsNull() {
            addCriterion("annex_no is null");
            return (Criteria) this;
        }

        public Criteria andAnnexNoIsNotNull() {
            addCriterion("annex_no is not null");
            return (Criteria) this;
        }

        public Criteria andAnnexNoEqualTo(String value) {
            addCriterion("annex_no =", value, "annexNo");
            return (Criteria) this;
        }

        public Criteria andAnnexNoNotEqualTo(String value) {
            addCriterion("annex_no <>", value, "annexNo");
            return (Criteria) this;
        }

        public Criteria andAnnexNoGreaterThan(String value) {
            addCriterion("annex_no >", value, "annexNo");
            return (Criteria) this;
        }

        public Criteria andAnnexNoGreaterThanOrEqualTo(String value) {
            addCriterion("annex_no >=", value, "annexNo");
            return (Criteria) this;
        }

        public Criteria andAnnexNoLessThan(String value) {
            addCriterion("annex_no <", value, "annexNo");
            return (Criteria) this;
        }

        public Criteria andAnnexNoLessThanOrEqualTo(String value) {
            addCriterion("annex_no <=", value, "annexNo");
            return (Criteria) this;
        }

        public Criteria andAnnexNoLike(String value) {
            addCriterion("annex_no like", value, "annexNo");
            return (Criteria) this;
        }

        public Criteria andAnnexNoNotLike(String value) {
            addCriterion("annex_no not like", value, "annexNo");
            return (Criteria) this;
        }

        public Criteria andAnnexNoIn(List<String> values) {
            addCriterion("annex_no in", values, "annexNo");
            return (Criteria) this;
        }

        public Criteria andAnnexNoNotIn(List<String> values) {
            addCriterion("annex_no not in", values, "annexNo");
            return (Criteria) this;
        }

        public Criteria andAnnexNoBetween(String value1, String value2) {
            addCriterion("annex_no between", value1, value2, "annexNo");
            return (Criteria) this;
        }

        public Criteria andAnnexNoNotBetween(String value1, String value2) {
            addCriterion("annex_no not between", value1, value2, "annexNo");
            return (Criteria) this;
        }

        public Criteria andAnnexContentIsNull() {
            addCriterion("annex_content is null");
            return (Criteria) this;
        }

        public Criteria andAnnexContentIsNotNull() {
            addCriterion("annex_content is not null");
            return (Criteria) this;
        }

        public Criteria andAnnexContentEqualTo(String value) {
            addCriterion("annex_content =", value, "annexContent");
            return (Criteria) this;
        }

        public Criteria andAnnexContentNotEqualTo(String value) {
            addCriterion("annex_content <>", value, "annexContent");
            return (Criteria) this;
        }

        public Criteria andAnnexContentGreaterThan(String value) {
            addCriterion("annex_content >", value, "annexContent");
            return (Criteria) this;
        }

        public Criteria andAnnexContentGreaterThanOrEqualTo(String value) {
            addCriterion("annex_content >=", value, "annexContent");
            return (Criteria) this;
        }

        public Criteria andAnnexContentLessThan(String value) {
            addCriterion("annex_content <", value, "annexContent");
            return (Criteria) this;
        }

        public Criteria andAnnexContentLessThanOrEqualTo(String value) {
            addCriterion("annex_content <=", value, "annexContent");
            return (Criteria) this;
        }

        public Criteria andAnnexContentLike(String value) {
            addCriterion("annex_content like", value, "annexContent");
            return (Criteria) this;
        }

        public Criteria andAnnexContentNotLike(String value) {
            addCriterion("annex_content not like", value, "annexContent");
            return (Criteria) this;
        }

        public Criteria andAnnexContentIn(List<String> values) {
            addCriterion("annex_content in", values, "annexContent");
            return (Criteria) this;
        }

        public Criteria andAnnexContentNotIn(List<String> values) {
            addCriterion("annex_content not in", values, "annexContent");
            return (Criteria) this;
        }

        public Criteria andAnnexContentBetween(String value1, String value2) {
            addCriterion("annex_content between", value1, value2, "annexContent");
            return (Criteria) this;
        }

        public Criteria andAnnexContentNotBetween(String value1, String value2) {
            addCriterion("annex_content not between", value1, value2, "annexContent");
            return (Criteria) this;
        }

        public Criteria andAnnexPlaceIsNull() {
            addCriterion("annex_place is null");
            return (Criteria) this;
        }

        public Criteria andAnnexPlaceIsNotNull() {
            addCriterion("annex_place is not null");
            return (Criteria) this;
        }

        public Criteria andAnnexPlaceEqualTo(String value) {
            addCriterion("annex_place =", value, "annexPlace");
            return (Criteria) this;
        }

        public Criteria andAnnexPlaceNotEqualTo(String value) {
            addCriterion("annex_place <>", value, "annexPlace");
            return (Criteria) this;
        }

        public Criteria andAnnexPlaceGreaterThan(String value) {
            addCriterion("annex_place >", value, "annexPlace");
            return (Criteria) this;
        }

        public Criteria andAnnexPlaceGreaterThanOrEqualTo(String value) {
            addCriterion("annex_place >=", value, "annexPlace");
            return (Criteria) this;
        }

        public Criteria andAnnexPlaceLessThan(String value) {
            addCriterion("annex_place <", value, "annexPlace");
            return (Criteria) this;
        }

        public Criteria andAnnexPlaceLessThanOrEqualTo(String value) {
            addCriterion("annex_place <=", value, "annexPlace");
            return (Criteria) this;
        }

        public Criteria andAnnexPlaceLike(String value) {
            addCriterion("annex_place like", value, "annexPlace");
            return (Criteria) this;
        }

        public Criteria andAnnexPlaceNotLike(String value) {
            addCriterion("annex_place not like", value, "annexPlace");
            return (Criteria) this;
        }

        public Criteria andAnnexPlaceIn(List<String> values) {
            addCriterion("annex_place in", values, "annexPlace");
            return (Criteria) this;
        }

        public Criteria andAnnexPlaceNotIn(List<String> values) {
            addCriterion("annex_place not in", values, "annexPlace");
            return (Criteria) this;
        }

        public Criteria andAnnexPlaceBetween(String value1, String value2) {
            addCriterion("annex_place between", value1, value2, "annexPlace");
            return (Criteria) this;
        }

        public Criteria andAnnexPlaceNotBetween(String value1, String value2) {
            addCriterion("annex_place not between", value1, value2, "annexPlace");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorIsNull() {
            addCriterion("annex_creator is null");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorIsNotNull() {
            addCriterion("annex_creator is not null");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorEqualTo(String value) {
            addCriterion("annex_creator =", value, "annexCreator");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorNotEqualTo(String value) {
            addCriterion("annex_creator <>", value, "annexCreator");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorGreaterThan(String value) {
            addCriterion("annex_creator >", value, "annexCreator");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorGreaterThanOrEqualTo(String value) {
            addCriterion("annex_creator >=", value, "annexCreator");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorLessThan(String value) {
            addCriterion("annex_creator <", value, "annexCreator");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorLessThanOrEqualTo(String value) {
            addCriterion("annex_creator <=", value, "annexCreator");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorLike(String value) {
            addCriterion("annex_creator like", value, "annexCreator");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorNotLike(String value) {
            addCriterion("annex_creator not like", value, "annexCreator");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorIn(List<String> values) {
            addCriterion("annex_creator in", values, "annexCreator");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorNotIn(List<String> values) {
            addCriterion("annex_creator not in", values, "annexCreator");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorBetween(String value1, String value2) {
            addCriterion("annex_creator between", value1, value2, "annexCreator");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorNotBetween(String value1, String value2) {
            addCriterion("annex_creator not between", value1, value2, "annexCreator");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorIsNull() {
            addCriterion("annex_editor is null");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorIsNotNull() {
            addCriterion("annex_editor is not null");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorEqualTo(String value) {
            addCriterion("annex_editor =", value, "annexEditor");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorNotEqualTo(String value) {
            addCriterion("annex_editor <>", value, "annexEditor");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorGreaterThan(String value) {
            addCriterion("annex_editor >", value, "annexEditor");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorGreaterThanOrEqualTo(String value) {
            addCriterion("annex_editor >=", value, "annexEditor");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorLessThan(String value) {
            addCriterion("annex_editor <", value, "annexEditor");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorLessThanOrEqualTo(String value) {
            addCriterion("annex_editor <=", value, "annexEditor");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorLike(String value) {
            addCriterion("annex_editor like", value, "annexEditor");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorNotLike(String value) {
            addCriterion("annex_editor not like", value, "annexEditor");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorIn(List<String> values) {
            addCriterion("annex_editor in", values, "annexEditor");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorNotIn(List<String> values) {
            addCriterion("annex_editor not in", values, "annexEditor");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorBetween(String value1, String value2) {
            addCriterion("annex_editor between", value1, value2, "annexEditor");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorNotBetween(String value1, String value2) {
            addCriterion("annex_editor not between", value1, value2, "annexEditor");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorTimeIsNull() {
            addCriterion("annex_creator_time is null");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorTimeIsNotNull() {
            addCriterion("annex_creator_time is not null");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorTimeEqualTo(Date value) {
            addCriterion("annex_creator_time =", value, "annexCreatorTime");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorTimeNotEqualTo(Date value) {
            addCriterion("annex_creator_time <>", value, "annexCreatorTime");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorTimeGreaterThan(Date value) {
            addCriterion("annex_creator_time >", value, "annexCreatorTime");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("annex_creator_time >=", value, "annexCreatorTime");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorTimeLessThan(Date value) {
            addCriterion("annex_creator_time <", value, "annexCreatorTime");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorTimeLessThanOrEqualTo(Date value) {
            addCriterion("annex_creator_time <=", value, "annexCreatorTime");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorTimeIn(List<Date> values) {
            addCriterion("annex_creator_time in", values, "annexCreatorTime");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorTimeNotIn(List<Date> values) {
            addCriterion("annex_creator_time not in", values, "annexCreatorTime");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorTimeBetween(Date value1, Date value2) {
            addCriterion("annex_creator_time between", value1, value2, "annexCreatorTime");
            return (Criteria) this;
        }

        public Criteria andAnnexCreatorTimeNotBetween(Date value1, Date value2) {
            addCriterion("annex_creator_time not between", value1, value2, "annexCreatorTime");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorTimeIsNull() {
            addCriterion("annex_editor_time is null");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorTimeIsNotNull() {
            addCriterion("annex_editor_time is not null");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorTimeEqualTo(Date value) {
            addCriterion("annex_editor_time =", value, "annexEditorTime");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorTimeNotEqualTo(Date value) {
            addCriterion("annex_editor_time <>", value, "annexEditorTime");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorTimeGreaterThan(Date value) {
            addCriterion("annex_editor_time >", value, "annexEditorTime");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("annex_editor_time >=", value, "annexEditorTime");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorTimeLessThan(Date value) {
            addCriterion("annex_editor_time <", value, "annexEditorTime");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorTimeLessThanOrEqualTo(Date value) {
            addCriterion("annex_editor_time <=", value, "annexEditorTime");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorTimeIn(List<Date> values) {
            addCriterion("annex_editor_time in", values, "annexEditorTime");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorTimeNotIn(List<Date> values) {
            addCriterion("annex_editor_time not in", values, "annexEditorTime");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorTimeBetween(Date value1, Date value2) {
            addCriterion("annex_editor_time between", value1, value2, "annexEditorTime");
            return (Criteria) this;
        }

        public Criteria andAnnexEditorTimeNotBetween(Date value1, Date value2) {
            addCriterion("annex_editor_time not between", value1, value2, "annexEditorTime");
            return (Criteria) this;
        }

        public Criteria andAnnexUsernoIsNull() {
            addCriterion("annex_userno is null");
            return (Criteria) this;
        }

        public Criteria andAnnexUsernoIsNotNull() {
            addCriterion("annex_userno is not null");
            return (Criteria) this;
        }

        public Criteria andAnnexUsernoEqualTo(String value) {
            addCriterion("annex_userno =", value, "annexUserno");
            return (Criteria) this;
        }

        public Criteria andAnnexUsernoNotEqualTo(String value) {
            addCriterion("annex_userno <>", value, "annexUserno");
            return (Criteria) this;
        }

        public Criteria andAnnexUsernoGreaterThan(String value) {
            addCriterion("annex_userno >", value, "annexUserno");
            return (Criteria) this;
        }

        public Criteria andAnnexUsernoGreaterThanOrEqualTo(String value) {
            addCriterion("annex_userno >=", value, "annexUserno");
            return (Criteria) this;
        }

        public Criteria andAnnexUsernoLessThan(String value) {
            addCriterion("annex_userno <", value, "annexUserno");
            return (Criteria) this;
        }

        public Criteria andAnnexUsernoLessThanOrEqualTo(String value) {
            addCriterion("annex_userno <=", value, "annexUserno");
            return (Criteria) this;
        }

        public Criteria andAnnexUsernoLike(String value) {
            addCriterion("annex_userno like", value, "annexUserno");
            return (Criteria) this;
        }

        public Criteria andAnnexUsernoNotLike(String value) {
            addCriterion("annex_userno not like", value, "annexUserno");
            return (Criteria) this;
        }

        public Criteria andAnnexUsernoIn(List<String> values) {
            addCriterion("annex_userno in", values, "annexUserno");
            return (Criteria) this;
        }

        public Criteria andAnnexUsernoNotIn(List<String> values) {
            addCriterion("annex_userno not in", values, "annexUserno");
            return (Criteria) this;
        }

        public Criteria andAnnexUsernoBetween(String value1, String value2) {
            addCriterion("annex_userno between", value1, value2, "annexUserno");
            return (Criteria) this;
        }

        public Criteria andAnnexUsernoNotBetween(String value1, String value2) {
            addCriterion("annex_userno not between", value1, value2, "annexUserno");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}